following content
[Ejabberd]
Driver = SQLSERVER
Description = SQLSERVER
Server = 192.168.2.159
Database = ejabberd
Port = 1433
Driver name in odbcinst. ini. Database is the name of the Database
Save and exit.
Test ODBC connection
# Bin/isql-v ejabberd sa 111111
SQL>
SQL> quit
Ii. Modify odbc files using ejabberd
1. In
Ejabberd, an open source framework for IM for Erlang, has been looking for a time to study:1. Download Ejabberd installation packagewget Http://www.process-one.net/downloads/ejabberd/2.1.13/ejabberd-2.1.13-linux-x86_64-installer.run2. After the download is complete, add permissions to the installation package, or you
Needless to say, Linux boot from boot ejabberd steps are as follows:1. Copy Ejabberd.init to/etc/init.d/ejabberd from the bin directory of the Ejabberd installation directory[Email protected] ~]# Cp/opt/ejabberd-2.1.13/bin/ejabberd.init/etc/init.d/ejabberd2. Create User Ejabberd
First, how to workAn XMPP domain is servo by one or more ejabberd nodes. These nodes may be running on different machines that are connected over the network. They must all have the ability to connect to port 4369 on all other nodes, and must have the same magic cookie (see ERLANG/OTP documentation, in other words, the file ~ejabberd/.erlang.cookie must be the same on all nodes). This is necessary because a
First, firewall settingsWhen you configure the firewall, you need to be aware of the following TCP ports:
Port
Description
5222
Standard port for JABBER/XMPP client connections, plain text, or STARTTLS.
5223
The Jabber client uses the old SSL method to connect to the standard port.
5269
A standard port for JABBER/XMPP server connections.
4369
EPMD listens for Erlang node name requests.
Reference:http://anders.conbere.org/journal/http://www.process-one.net/en/wiki/ejabberd_module_development/Many of Ejabberd's internal modules work in the form of plug-ins, so we can also develop our own modules to integrate into the ejabberd to complete a variety of our unique needs.Ejabberd defines a gen_mod behaviour, which requires the following callback:Erlang Code
Start (Host, Opts), OK
Stop (Host), OK
* Host = string ()
* O
1. InstallationExecution apt-get Install Ejabberd , You can also log in to the official website https://www.process-one.net download package installation. 2. Start-Stop serviceEjabberdctl Restart/stop/start/stop/statusNote: sometimes use ejabberdctl Start On startup there will be " Failed RPC connectionto the node [email protected]: Nodedown "Errors such as this can be /etc/init.d/ejabberd Start start. 3. C
One, log filesA ejabberd node writes two log files:Ejabberd.logEjabberd service logs, messages reported by the Ejabberd nodeerlang.log ERLANG/OTP system log, messages reported by ERLANG/OTP using SASL (System architecture Support Library)Option LogLevel Modify the verbosity of the file Ejabberd.log. The syntax is:{loglevel, Level}.The possible level is:0No ejabberd
Recently in the toss Ejabberd, the Ejabberd project configuration to eclipse in the compilation, debugging, etc., now write down the process, hoping to help the people in need.Get ready
This environment is carried out in Linux, Blogger's Linux is fedora20.
Installing Erlang
Install Eclipse
Install Eclipse plugin: erlide
The above installation process please self-search related tutor
The position of Erlang in social applications underscores the importance of having a large, high-volume, concurrent IM server to become less unreachable. Ejabberd is such a good choice, at least a great reference. For a server with 4 cores of 16G memory, a single ejabberd node can support 300,000 of IM users.Ejabberd is an Instant Messaging server based on the JABBER/XMPP protocol, licensed by GPLV2 (free a
External scriptsIn this authentication module, when Ejabberd is started, it launches a script to invoke its authentication task.The service administrator can use any of the language to write external scripts, and the interface details between Ejabberd and scripts are described in the Ejabberd Development Guide. There are also instances of authentication scripts h
In order to extend the Ejabberd, MySQL is used to implement the databaseBut search online articles are actually a lot of rubbish, should be written by the person is not tested1: Not saying database script where to download2: No description of how to configure the Ejabberd.cfg, especially when the configuration of the database, you must go to configure Odbc.ini3: No instructions on how to suggest an Administrator accountSpit out the trough, start to pu
Error
Changing the domain name in the configuration file and in ejabberd's startup command do not work.
Explanation
Because ejabberd uses mnesia as its internal database, and because this system stores the Erlang node name into the backup files, you cannot simply change the domain name in the configuration file and in ejabberd's startup command. if you want to migrate from one host to another you have to 'convert' the backups from the old node name to
is developing a social software, architecture im using Ejabberd as the XMPP server, then encountered how to register XMPP users through PHP problem.
There are several workarounds:
1. Using the xmpphp framework to send messages containing meta-data to the server requires processing, this can be consulted:
2. Using the PHP XMPP library Jaxl, the demo code contains a Register_user script that is called through the shell:
PHP example/register_user.
Because the server is a version of servers, it is difficult to visually see Mnesia data. So it's very confusing for beginners.Specifically in the QQ group to consult others. Others say that as long as the pong through the line, you can use RPC to operate the remote Mnesia database. Beginners too understand this meaning. Then specifically search for a bit, and finally found someone else about the two Erl node Server ping Pass article.OK, then connect the Ejabber Mnesia database remotely.Ejabberd
.
In the implementation of Ejabberd, the Bosh technology is used to accomplish the corresponding work, the specific definition can be referenced:English: http://go.rritw.com/xmpp.org/extensions/xep-0124.htmlEnglish: http://go.rritw.com/wiki.jabbercn.org/XEP-0124Approximate implementation principle: Ejabberd receives a client HTTP request will eventually create three processes for the client:
In order to make a chat program in iOS, XMPP protocol is used, the server selects ejabberd. In the http://xmpp.org/xmpp-software/servers/
Here there are many items on the server side. Select ejabberd.
In... Speechless !!
Because n methods have been used before, installation errors are reported. Installation with source code and installation package are all pitfalls !! I have also found many solutions on
First, IntroductionEjabberd is an open source Instant Messaging server written in ERLANG/OTP, which is a cross-platform, distributed, fault-tolerant, open-standards-based, real-time communication system. Ejabberd is a feature-rich XMPP server, suitable for both small-scale and ultra-large reckoned deployments, regardless of the need for scalability.Second, the key function1. Cross-platformEjabberd can run on Microsoft Windows and UNIX-like systems suc
Android asmack solves ejabberd connection problems
It is found that android uses asmack to connect to ejabberd, and there will always be various problems
After multiple tests, the exception of the specific process is not written. The successful writing method is as follows:
ConnectionConfiguration connConfig =
NewConnectionConfiguration (ip, 5222, "servername ");
// Openfire only needs the addre
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.